package com.shop.shoporder.mapper.order;


import com.shop.shoporder.entity.order.UserAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserAddressMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(UserAddress record);

    int insertSelective(UserAddress record);

    UserAddress selectByPrimaryKey(Integer id);
    UserAddress getAddressDefault(Integer userNoId);
    UserAddress getAddressAll(UserAddress userAddress);
    int updateByPrimaryKeySelective(UserAddress record);
    int updateAddressStateByUserId(Integer userNoId);
    int updateByPrimaryKey(UserAddress record);
    int updateIsDelete(Integer id);

    List<UserAddress> getAddressList(int userNoId);

}